﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    [Serializable]
    [EntityMapping(TableName = "Plan")]
    public class Plan
    {
        /// <summary>
        /// 任务计划ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "PlanID")]
        public string PlanID { get; set; }

        /// <summary>
        /// 任务标题
        /// </summary>
        [EntityMapping(ColumnName = "Title")]
        public string Title { get; set; }

        /// <summary>
        /// 任务开始时间
        /// </summary>
        [EntityMapping(ColumnName = "StartDateTime")]
        public DateTime? StartDateTime { get; set; }

        /// <summary>
        /// 任务结束时间
        /// </summary>
        [EntityMapping(ColumnName = "EndDateTime")]
        public DateTime? EndDateTime { get; set; }

        /// <summary>
        /// 任务范围
        /// </summary>
        [EntityMapping(ColumnName = "Range")]
        public string Range { get; set; }

        /// <summary>
        ///  任务内容
        /// </summary>
        [EntityMapping(ColumnName = "Content")]
        public string Content { get; set; }

        /// <summary>
        /// 任务状态（已下达、执行中、已完成）
        /// </summary>
        [EntityMapping(ColumnName = "State")]
        public string State { get; set; }

        /// <summary>
        /// 所属用户
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }
    }
}
